
package com.monlyu.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monlyu.annotation.Comment;

/*******************************************************************************
 * <b>功能描述☞稿件审核表</b><br>
 * <b>项目名☞</b>NewsSys<br>
 * <b>文件路径☞</b>com.monlyu.vo.ManuScAudit.java<br>
 * <b>开发日期☞</b>2010-2-22 <br>
 * 
 * @author skw
 * @since JDK 5
 * @version 1.0.1
 ******************************************************************************/
@Entity(name = "t_manuscaudit")
public class ManuScAudit extends BaseVo {

    @Id
    @Column(name = "ma_id", precision = 0)
    @Comment(common = "编号")
    private Long id;

    @ManyToOne
    @JoinColumn(name = "ma_manuscript", nullable = false)
    @Comment(common = "稿件")
    private Manuscript manuscript;

    @ManyToOne
    @JoinColumn(name = "ma_auditor", nullable = false)
    @Comment(common = "审核人员")
    private User auditor;

    @Column(name = "ma_level")
    @Comment(common = "审核级别")
    private int level;

    @Column(name = "ma_remark", length = LENGTH_500)
    @Comment(common = "备注，审核意见")
    private String remark;

    @Column(name = "ma_content", length = LENGTH_8000)
    @Comment(common = "上个版本的稿件内容")
    private String content;

    @Column(name = "ma_date", nullable = false)
    @Comment(common = "审核时间")
    private Date date;

    @Column(name = "ma_killed", nullable = false)
    @Comment(common = "是否毙稿")
    private boolean killed;

    @Column(name = "ma_sendBack", nullable = false)
    @Comment(common = "是否返回给撰稿人")
    private boolean sendBack;

    @Column(name = "ma_auditScore")
    @Comment(common = "审核人分数")
    private Long auditScore;

    @ManyToOne
    @JoinColumn(name = "ma_scoreUser")
    @Comment(common = "打分数人员")
    private User scoreUser;

    @Column(name = "ma_scoreDate")
    @Comment(common = "打分时间")
    private Date scoreDate;

    public User getScoreUser(){
        return scoreUser;
    }

    public void setScoreUser(User scoreUser){
        this.scoreUser = scoreUser;
    }

    public Date getScoreDate(){
        return scoreDate;
    }

    public Long getId(){
        return id;
    }

    public void setId(Long id){
        this.id = id;
    }

    public void setScoreDate(Date scoreDate){
        this.scoreDate = scoreDate;
    }

    public Manuscript getManuscript(){
        return manuscript;
    }

    public void setManuscript(Manuscript manuscript){
        this.manuscript = manuscript;
    }

    public User getAuditor(){
        return auditor;
    }

    public void setAuditor(User auditor){
        this.auditor = auditor;
    }

    public int getLevel(){
        return level;
    }

    public void setLevel(int level){
        this.level = level;
    }

    public String getRemark(){
        return remark;
    }

    public void setRemark(String remark){
        this.remark = remark;
    }

    public Date getDate(){
        return date;
    }

    public void setDate(Date date){
        this.date = date;
    }

    public boolean isKilled(){
        return killed;
    }

    public void setKilled(boolean killed){
        this.killed = killed;
    }

    public boolean isSendBack(){
        return sendBack;
    }

    public void setSendBack(boolean sendBack){
        this.sendBack = sendBack;
    }

    public Long getAuditScore(){
        return auditScore;
    }

    public void setAuditScore(Long auditScore){
        this.auditScore = auditScore;
    }

    public String getContent(){
        return content;
    }

    public void setContent(String content){
        this.content = content;
    }

}
